<layout name="Layout/StoreHead" />

<!-- Content -->

<section id="container">
	<div class="wrap-container zerogrid">
<?php
	$Upload_root = "__PUBLIC__/img/Review/store/shop_upload/";
	foreach($store_list as $key => $value)
	{
		if ($value['owner']=="") 
		{
			$Owner_Info="尚无店主认领";
		}
		else $Owner_Info="店主为".$value['owner'];

		if(is_array($value) && $key%2 == 0)
		{
?>
		<div class="row">
			<div class="col-1-2">
				<div class="wrap-col">
					<article class="bg-red">
						<div class="art-header">
							<a href="{:U('Store/show_detial?sid='.$value['sid'])}"><img src="<?php echo $Upload_root.$value['pic'];?>"/></a>
						</div>
						<div class="art-content">
							<div class="col-1-3 right">
								<div class="wrap-col">
									<div class="info">
										<ul class="clearfix">
											<li><a href="#"><img src="__PUBLIC__/img/Review/store/avatar.png"/><?php echo $Owner_Info; ?></a></li>
											<li><a href="{:U('Store/show_detial?sid='.$value['sid'])}">March 1, 2015</a></li>
											<li><a href="{:U('Store/show_detial?sid='.$value['sid'])}">Technology</a></li>
											<li class="last"><a href="{:U('Store/show_detial?sid='.$value['sid'])}">Leave a comment</a></li>
										</ul>
									</div>
								</div>
							</div>
							<div class="col-2-3 bg-white">
								<div class="wrap-col">
									<div class="main-post">
										<h2 class="title"><a href="single.php"><?php echo $value['sname'];?></a></h2>
										<p><?php echo "店铺地址:<br/>".$value['address']."<br/>";
										echo "详情:\t<br/>".$value['sdetail'];?>
										</p>
									</div>	
								</div>
							</div>
						</div>
					</article>
				</div>
			</div>
<?php
		}
		else
		{
?>
			<div class="col-1-2">
				<div class="wrap-col">
					<article class="bg-yellow">
						<div class="art-header">
					<a href="{:U('Store/show_detial?sid='.$value['sid'])}"><img src="<?php echo $Upload_root.$value['pic'];?>"/></a>
						</div>
						<div class="art-content">
							<div class="col-1-3">
								<div class="wrap-col">
									<div class="info">
										<ul class="clearfix">
											<li><a href="#"><img src="__PUBLIC__/img/Review/store/avatar.png"/><?php echo $Owner_Info; ?></a></li>
											<li><a href="{:U('Store/show_detial?sid='.$value['sid'])}">February 1, 2015</a></li>
											<li><a href="{:U('Store/show_detial?sid='.$value['sid'])}">Technology</a></li>
											<li class="last"><a href="{:U('Store/show_detial?sid='.$value['sid'])}">Leave a comment</a></li>
										</ul>
									</div>
								</div>
							</div>
							<div class="col-2-3 bg-white">
								<div class="wrap-col">
									<div class="main-post">
										<h2 class="title"><a href="single.php"><?php echo $value['sname'];?></a></h2>
										<p><?php echo "店铺地址:<br/>".$value['address']."<br/>";
										echo "详情:\t<br/>".$value['sdetail'];?>
										</p>
									</div>
								</div>
							</div>	
						</div>
					</article>
				</div>
			</div>
		</div>
<?php
		}
	}
?>
	</div>
	<div id="pagination" class="clearfix">
		<ul>
			<li><a class="current" href="#">1</a></li>
			<li><a href="#">2</a></li>
			<li><a href="#">3</a></li>
			<li><a href="#">4</a></li>
			<li><a href="#">下一页</a></li>
		</ul>
	</div>
</section>